package com.buric.api.service.admin;

import com.buric.api.dto.admin.LoginAdmin;
import com.buric.api.factory.admin.AdminApiFallBackFactory;
import com.buric.common.data.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zhou.wei
 * @description 用户相关接口
 * @date: 2024/5/10 16:22
 */

@FeignClient(contextId = "adminApiService",value = "platform-web-admin", fallbackFactory = AdminApiFallBackFactory.class)
public interface AdminApiService {

    /**
     * 通过 用户名称 获取用户信息
     * @param username
     * @return
     */
    @GetMapping("/user/info/{username}")
    R<LoginAdmin> getUserByUsername(@PathVariable("username") String username);

}
